﻿using QldtSdh.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QldtSdh.DAL.Models
{
    public partial class NhatKyHoatDong
    {
        public string LoaiThaoTacStr
        {
            get
            {
                LOAITHAOTAC l = (LOAITHAOTAC)LoaiThaoTac;
                return EnumWithName<LOAITHAOTAC>.GetName(l);
            }
        }
        public string LoaiDoiTuongStr
        {
            get
            {
                LOAIDOITUONG l = (LOAIDOITUONG)LoaiDoiTuong;
                return EnumWithName<LOAIDOITUONG>.GetName(l);
            }
        }
        public string TenNguoiThucHien
        {
            get
            {
                var user = BLL.HeThong.GetNguoiSuDung(MaNguoiThucHien);
                if (user != null)
                    return user.FullName;
                else
                    return "Không tìm thấy";
            }
        }
    }
}
